import {Switch, Route, Redirect} from "react-router-dom"
import Layout from "./views/Layout"
import Login from "./views/Login"
import NotFound from "./views/NotFound"
import PrivateRoute from "./components/PrivateRoute"
import './App.css';

function App() {
  return (
<div className='App'>
      <Switch>
        <Route exact path='/'>
          <Redirect to='/home' />
        </Route>
        <PrivateRoute path='/home' component={Layout}></PrivateRoute>
        <Route path='/login' component={Login}></Route>
        <Route>
          <NotFound />
        </Route>
      </Switch>
    </div>
  );
}

export default App;
